import 'package:lzj_demo/bean/artical.dart';
import 'package:lzj_demo/bean/artical_type.dart';
import 'package:lzj_demo/bean/user_info.dart';
import 'package:lzj_demo/network/request_client.dart';

class ApiService {
  static getArticalList(Map<String, dynamic> params) {
    return RequestClient()
        .get<List<Artical>>("/index/getArticalList", queryParameters: params);
  }

  static getArticalTypeList(Map<String, dynamic> params) {
    return RequestClient().get<List<ArticalType>>("/index/getArticalTypeList",
        queryParameters: params);
  }

  static getUserInfo(Map<String, dynamic> params) {
    return RequestClient()
        .get<UserInfo>("/my/getUserInfo", queryParameters: params);
  }
}
